package com.project.junM.controller;

import com.project.junM.entity.TCheckitem;
import com.project.junM.service.CheckitemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/checkItem")
public class CheckitemController {

    @Autowired
    private CheckitemService checkitemService;

    @GetMapping("/queryCheckItemAll")
    public List<TCheckitem> queryCheckItemAll(HttpSession session){
        return checkitemService.queryCheckItemAll(session);
    }


}
